package com.yansu.cloud.feign;

import org.springframework.cloud.netflix.feign.FeignClient;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;

import com.yansu.config.ServiceConfiguration;

/**
 * 
 * @author 言肃
 * @email yansu_code@126.com
 * @version 1.0
 * @date Jul 29, 2018 5:09:05 PM
 */
@FeignClient(name = "xxxx", url = "localhost:9090", configuration = ServiceConfiguration.class)
public interface ServiceFeignClient {

	@RequestMapping(value = "/eureka/apps/{serviceName}")
	public String findServiceInfoFromEurekaByServiceName(@PathVariable("serviceName") String serviceName);

}
